package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购采退详情表对象 tb_xqpurchase
 * 
 * @author ruoyi
 * @date 2024-05-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Xqpurchase
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long pId;

    /** 汇总id */
    @Excel(name = "汇总id")
    private Long purchaseId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long sum;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal zprice;

    private String isRk;

    private String batch;

    //---------追加属性
    private String purchaseCode;
    private String productCode;
    private String productName;
    private String unit;
    private LocalDateTime manufactureDate;
    private LocalDateTime expirationDate;
    private String productBrand;




    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setPurchaseId(Long purchaseId)
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId()
    {
        return purchaseId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setSum(Long sum)
    {
        this.sum = sum;
    }

    public Long getSum()
    {
        return sum;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setZprice(BigDecimal zprice)
    {
        this.zprice = zprice;
    }

    public BigDecimal getZprice()
    {
        return zprice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pId", getpId())
            .append("purchaseId", getPurchaseId())
            .append("productId", getProductId())
            .append("sum", getSum())
            .append("price", getPrice())
            .append("zprice", getZprice())
            .toString();
    }
}
